package DAL.Entites;

import java.util.ArrayList;
import java.util.List;


public class Game {
	int Id;
	String Name;
	String Description;
	String Trailer;
	int ConsoleId;
	String ConsoleName;
	int GenreId;
	String GenreName;
	int Quantity;
	float Price;
	List<String> images;
	float Rank;
	
	public Game(int Id, String Name, String Description, String Trailer, int ConsoleId, int GenreId, int Quantity, float Price, List<String> imagesId, String ConsoleName, String GenreName)
	{
		this.Id = Id;
		this.Name = Name;
		this.Description = Description;
		this.Trailer = Trailer;
		this.ConsoleId = ConsoleId;
		this.GenreId = GenreId;
		this.Quantity = Quantity;
		this.Price = Price;
		if(imagesId == null)
		{
			this.images = new ArrayList<String>();
		}
		
		else
		{
			this.images = imagesId;
		}
		
		this.ConsoleName = ConsoleName;
		this.GenreName = GenreName;
		this.Rank = 0;
	}
	
	public Game(int Id)
	{
		this.Id = Id;
	}
	
	public int getId()
	{
		return this.Id;
	}
	
	public String getName()
	{
		return this.Name;
	}
	
	public void setName(String Name)
	{
		this.Name = Name;
	}
	
	public String getDescription()
	{
		return Description;
	}
	
	public void setDescription(String Description)
	{
		this.Description = Description;
	}
	
	public String getTrailer()
	{
		return this.Trailer;
	}
	
	public void setTrailer(String Trailer)
	{
		this.Trailer = Trailer;
	}
	
	public int getConsoleId()
	{
		return this.ConsoleId;
	}
	
	public void setConsoleId(int ConsoleId)
	{
		this.ConsoleId = ConsoleId;
	}
	
	public int getGenreId()
	{
		return this.GenreId;
	}
	
	public void setGenreId(int GenreId)
	{
		this.GenreId = GenreId;
	}
	
	public float getPrice()
	{
		return this.Price;
	}
	
	public void setPrice(float Price)
	{
		this.Price = Price;
	}
	
	public int getQuantity()
	{
		return this.Quantity;
	}
	
	public void setQuantity(int Quantity)
	{
		this.Quantity = Quantity;
	}
	
	public List<String> getImages()
	{
		return this.images;
	}
	
	public void addImage(String image)
	{
		this.images.add(image);
	}
	
	public void removeImage(String image)
	{
		this.images.remove(image);
	}
	
	public String getConsoleName()
	{
		return this.ConsoleName;
	}
	
	public String getGenreName()
	{
		return this.GenreName;
	}
	
	public void setRank(float Rank)
	{
		this.Rank = Rank;
	}
	
	public float getRank()
	{
		return this.Rank;
	}
}
